package com.lrkj.back.service;

import java.util.List;
import java.util.Map;

import com.lrkj.back.entity.TbDict;
import com.github.pagehelper.PageInfo;

import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.api.ParentService;

public interface TbDictService extends ParentService<TbDict>{
	/**
	 * 查询大类下的小类的列表
	 * @param map
	 * @return
	 */
	PageInfo<TbDict> findDictSubitems(Map<String,Object> map)throws DBException;
	/**
	 * 按照编码查询dict
	 * @param dictCode
	 * @return
	 */
	TbDict selectByCode(String dictCode)throws DBException;
	
	//addd by wufan
	/**
	 * 字典大类查询
	 * @param map
	 * @return
	 */
	PageInfo<TbDict> queryTbDictList(Map<String, Object> map)throws DBException;
	List<TbDict>  findDictList()throws DBException;
	/**
	 * 删除小类的所有字典
	 * @param parentId
	 * @return
	 */
	int deleteChildNodes(Integer parentId)throws DBException;
	List<TbDict>findDetailByCode(String dictCode)throws DBException;
}
